package vip.source.pattern.part14.command.service.impl;

import vip.source.pattern.part14.command.domain.Light;
import vip.source.pattern.part14.command.service.Command;

// 具体命令 - 关闭灯
public class LightOffCommand implements Command {
    private Light light;

    public LightOffCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.turnOff();
    }
}
